Reference

header

<mutex>

Mutex
Header with facilities that allow mutual exclusion (mutex) of concurrent execution of critical sections of code, allowing to explicitly avoid data races.

It contains mutex types, lock types and specific functions:


Classes

Mutexes

mutex
Mutex class (class)
recursive_mutex
Recursive mutex class (class)
timed_mutex
Timed mutex class (class)
recursive_timed_mutex
Recursive timed mutex (class)

Locks

lock_guard
Lock guard (class template)
unique_lock
Unique lock (class template)

Other types

once_flag
Flag argument type for call_once (class)
adopt_lock_t
Type of adopt_lock (class)
defer_lock_t
Type of defer_lock (class)
try_to_lock_t
Type of try_to_lock (class)

Functions

try_lock
Try to lock multiple mutexes (function template)
lock
Lock multiple mutexes (function template)
call_once
Call function once (public member function)

AltStyle によって変換されたページ (->オリジナル) /